from base.base_page import *
import allure,time
from locators.Sales_reservation_added_locators import *
class Sales_ReservationAddedPages(Base):
    @allure.step("点击体验一下")
    def click_Try_it_out_(self):
        self.click_element(*click_Try_it_out)
    @allure.step("断言：快速菜单")
    def text_quick_menu_(self):
        text = self.get_texts(*text_quick_menu,num=0)
        assert text == "快速菜单"
    @allure.step("点击销售")
    def click_Sales_(self):
        self.click_element(*click_Sales)
    @allure.step("点击销售预定")
    def click_Sales_reservation_(self):
        self.click_elements(*click_Sales_reservation, num = 1)
    @allure.step("断言：是否进入销售预定页面")
    def text_Sales_reservation_(self):
        time.sleep(1)
        a1 = self.get_texts(*text_Sales_reservation,num=1)
        assert a1 == "销售预订"
    @allure.step("点击老板")
    def click_boss_(self):
        self.click_element(*click_boss)
        time.sleep(2)
    @allure.step("点击退出登录")
    def click_logout_(self):
        self.click_element(*click_logout)
        time.sleep(2)
    @allure.step("断言：获取文本")
    def check_logout_(self):
        text = self.get_texts(*check_logout,num=0)
        assert text == "登录"



